﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Copad.BusinessCard.DAL;
using Copad.BusinessCard.Model;
using Copad.BusinessCard.BLL;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Card card = new Card();
            card.Summary = new CardInfo { Name = "周攀峰",Nickname="阿拉侬",CardID="test" };
            card.Address.Add(new CardAddress {CardID="test", Address1 = "大棚王母新村西区" });
            card.Address.Add(new CardAddress { CardID = "test", Address2 = "广西北流" });
            card.Number.Add(new CardPhoneNumber { CardID = "test", Number = "18620127204" });
            card.Number.Add(new CardPhoneNumber { CardID = "test", Number = "13640796160" });
            card.Remark.Add(new CardRemark { CardID = "test", Remark = "测试备注", Type = RemarkTypeEnum.Text });
            new CardBLL().Insert(card);
            Console.ReadLine();
        }
    }
}
